<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.infodms.dms.exception.BizException" %>
<%@ page import="com.infoservice.mvc.context.ActionContext" %>
<%@ page import="com.infodms.dms.common.ErrorCodeConstant" %>
<%@ page import="com.infodms.dms.common.RightMessageConstant " %>
<%@ page import="com.infodms.dms.common.FileConstant"%>
<%@ page import="java.util.Calendar" %>
<%@ page import="java.text.SimpleDateFormat" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7">
<link href="<%=request.getContextPath()%>/style/content.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/style/calendar.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/style/page-info.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=FileConstant.codeJsUrl%>"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/regionData.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/dict.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/framecommon/HashMap.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jslib/dialog_new.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jslib/DestoryPrototype.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/web/common.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/FormValidation.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jslib/calendar.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jslib/prototype.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/framecommon/default.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/framecommon/DialogManager.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js" charset="UTF-8"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jslib/InfoAjax.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jslib/my-grid-pager.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/dateFormatter.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/msgformat.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/textBox.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/kindeditor/kindeditor.js" />
<script type="text/javascript" >
    var globalContextPath ='<%=(request.getContextPath())%>';
    var g_webAppName = '<%=(request.getContextPath())%>';   //全局webcontent应用名，避免js使用"<%=request.getContextPath()%>"
    var g_webAppImagePath = "<%=(request.getContextPath())%>"+"/images";   //全局图片路径
	function autoAlertException(){
		var str = null;
		<%
		Throwable exception = ActionContext.getContext().getException();
			if(exception!=null&& (exception instanceof BizException)){
				BizException biz = (BizException)exception;
				if(biz.getType()!=ErrorCodeConstant.SELF_DEAL_WITH_CODE){
		%>
					if(<%=biz.getErrCode()!=null %>){
						str = strAppend(str,"错误代码"+'<%=biz.getErrCode()%>'+":</br>");
					}
					if(<%=biz.getMessage()!=null %>){
						str = strAppend(str,'<%=biz.getMessage() %>');
					}
					MyAlert(str);
					return false;
			<%
			}}
			%>
				return true;
			
	}
</script>
<div id="loader" style='position:absolute;z-index:200;background:#FFCC00;padding:1px;top:4px;display:none;display: none;'></div>
<%
	Calendar time=Calendar.getInstance();
	SimpleDateFormat formate = new SimpleDateFormat("yyyy,MM,dd,hh,mm,ss");
	String sys_date = formate.format(time.getTime());
%>	
<input type="hidden" id="sys_date__" name="sys_date__" value="<%=sys_date %>">
